package com.whirl.basic.mapper;

import com.whirl.basic.query.BaseQuery;

import java.util.List;

/**
 * @author xiaowei
 * @date 2022/6/27 13:47
 */
public interface BaseMapper<T> {
    void insert(T t);

    void deleteById(Long id);

    void update(T t);

    T selectById(Long id);

    List<T> selectAll();

    //查询总条数
    Long queryCount(BaseQuery query);
    //查询当前的页数
    List<T> queryData(BaseQuery query);

    void patchDelete(List<Long> ids);
}
